package com.springboot.base.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * @author beike
 * @date 2021/11/22 7:30 下午
 */
@Data
public class BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    //@TableLogic
    private Integer deleted;

    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(value = "updated_time",fill = FieldFill.UPDATE)
    private Date updatedTime;

}